/*
 * XML Type:  PaymentProcessingStatus
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PaymentProcessingStatus
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PaymentProcessingStatus(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PaymentProcessingStatusImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.PaymentProcessingStatus
{
    
    public PaymentProcessingStatusImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PMTPRCCODE$0 = 
        new javax.xml.namespace.QName("", "PMTPRCCODE");
    private static final javax.xml.namespace.QName DTPMTPRC$2 = 
        new javax.xml.namespace.QName("", "DTPMTPRC");
    
    
    /**
     * Gets the "PMTPRCCODE" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessStatusEnum.Enum getPMTPRCCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PMTPRCCODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.PaymentProcessStatusEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "PMTPRCCODE" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessStatusEnum xgetPMTPRCCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessStatusEnum)get_store().find_element_user(PMTPRCCODE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "PMTPRCCODE" element
     */
    public void setPMTPRCCODE(net.ofx.types.x2003.x04.PaymentProcessStatusEnum.Enum pmtprccode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PMTPRCCODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PMTPRCCODE$0);
            }
            target.setEnumValue(pmtprccode);
        }
    }
    
    /**
     * Sets (as xml) the "PMTPRCCODE" element
     */
    public void xsetPMTPRCCODE(net.ofx.types.x2003.x04.PaymentProcessStatusEnum pmtprccode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessStatusEnum)get_store().find_element_user(PMTPRCCODE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PaymentProcessStatusEnum)get_store().add_element_user(PMTPRCCODE$0);
            }
            target.set(pmtprccode);
        }
    }
    
    /**
     * Gets the "DTPMTPRC" element
     */
    public java.lang.String getDTPMTPRC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPMTPRC$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTPMTPRC" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTPMTPRC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPMTPRC$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTPMTPRC" element
     */
    public void setDTPMTPRC(java.lang.String dtpmtprc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTPMTPRC$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTPMTPRC$2);
            }
            target.setStringValue(dtpmtprc);
        }
    }
    
    /**
     * Sets (as xml) the "DTPMTPRC" element
     */
    public void xsetDTPMTPRC(net.ofx.types.x2003.x04.DateTimeType dtpmtprc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTPMTPRC$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTPMTPRC$2);
            }
            target.set(dtpmtprc);
        }
    }
}
